<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>  <!--指令元素-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Beer Recommendations JSP</title>
</head>
<body>
<h1 align="center">Beer Recommendations JSP</h1>
<p>

<% 
  ArrayList styles = (ArrayList)request.getAttribute("styles");

  Iterator it = styles.iterator();

  while(it.hasNext()) {
    out.print("<br>try " + it.next());
  }
%>
</body>
</html>